#pragma once

namespace xx
{
	/*template<class T>
	class stack
	{
	private:
		T* _a;
		size_t _size;
		size_t _capacity;

	};*/


	template<class T,class Container=vector<T> >
	class stack
	{
	public:
		void push(const T& x)
		{
			con.push_back(x);
		}
		void  pop()
		{
			con.pop_back();
		}
		const T& top() const
		{
			return con.back();
		}
		size_t size() const
		{
			return con.size();
		}
		bool empty() const
		{
			return con.empty();
		}
		
	private:
		Container con;
	};
}
